package com.service;

import com.entity.User;

import java.util.List;

public interface UserService {
    User login(String username, String passwd);
    int registered(String name,String pwd);
    List<User> userList();
    int modify(User user);
    User getUser(String name, String oldPwd);
    int modifyPwd(int id, String pwd);
    User selectName(String name);
    int getCartNum(int userId);
    User getUserById(int userId);
}
